package Java9_8;

import java.util.Scanner;

public class Work5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String str = sc.next();

        System.out.println(str.replaceAll("\\D",""));
    }
}
